{% extends "base.html" %}
{% block main %}
<style>
body{text-align: center}
table{margin: auto}
button{margin: auto}
</style>

    <div id="user_reg">
    <br>
    <br>
        <h5>用户注册</h5>
	<form action="/register" method="post" name="form" >
		<table>
			<tr>
				<td>用户名：</td>
				<td><input type="text" id="username" name="username" placeholder="请输入用户名" onblur="validate_username(this.value)"/></td>
				<td id="test_user"></td>
			</tr>
            <br>
			<tr>
				<td>密码：</td>
				<td><input type="password" id="password" name="password" placeholder="请输入至少六位密码" onblur="validate_password(this.value)"/></td>
				<td id="test_pw"></td>
			</tr>
			<tr>
				<td></td>
				</td>
			</tr>
		</table>
        <br>
    <button class="btn btn-lg btn-primary btn-block" type="submit" style="width:100px; height:50px">注册</button>
	</form>
    </div>


{% endblock %}